//
//  MYGHealthManagementReportModel.swift
//  MYGrow
//
//  Created by 林矗 on 2024/3/9.
//

import UIKit

class MYGHealthManagementReportModel: MYGHealthManagementRowModel {
    var headUrl: String = ""
    var name: String = ""
    var sex: Int = 0 //
    var time = ""
    var location = ""
    var num = ""
    var url = ""
    override var action: (() -> ())? {
        return {
            let vc = MYGPDFViewController()
            vc.pdfUrl = self.url
            UIViewController.currentViewController?.navigationController?.pushViewController(vc)
        }
    }
    init(headUrl: String, name: String, sex: Int, time: String, location: String, num: String, url: String) {
        self.headUrl = headUrl
        self.name = name
        self.sex = sex
        self.time = time
        self.location = location
        self.num = num
        self.url = url
        super.init(type: .report)
    }
    
    init() {
        super.init(type: .report)
    }
}
